package com.whz.workmanageol.dao;

import com.whz.workmanageol.entity.Grade;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface GradeMapper extends Mapper<Grade> {

    @Select("select id from grade where gradename = #{gradename}")
    String findIDByGradename(String gradename);

    List<Grade> findGradesByTeacherid(String teacherid);
}
